package com.yuanfeng.activity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yuanfeng.activity.dto.PintuanBaseListQueryDTO;
import com.yuanfeng.activity.entity.ActivityPiecingTogetherTempEntity;
import com.yuanfeng.activity.vo.PintuanMarkMessageVO;
import com.yuanfeng.commoms.vo.activity.ModularGoodsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @ClassName ActivityPiecingTogetherTempMapper
 * @Description  拼团信息表 参与者所属团 及拼团类型
 * @Author cyp
 * @Date 2023-06-01 11:59:15
 * @Version 1.0
 **/
@Mapper
public interface ActivityPiecingTogetherTempMapper extends BaseMapper<ActivityPiecingTogetherTempEntity> {

     /**
      * 插入团信息
      * @param markMessage
      */
     void insertPintuanTemp(@Param("param")PintuanMarkMessageVO markMessage);

    /**
     * 查询团长信息
     * @param markId
     * @return
     */
    List<String> selectByMarkId(@Param("markId")String markId);

    /**
     * 查询该订单是否是拼团订单
     */
    Integer queryPintByOrder(@Param("orderId") String orderId);

    /**
     * 修改拼团的支付状态
     */
    Integer updatePintByOrder(@Param("orderId")String orderId);

    /**
     * 组件化查询拼团活动列表
     **/
    IPage<Map<String,Object>> selectModularizationPintuanBaseList(IPage<Map<String,Object>> page,@Param("param") PintuanBaseListQueryDTO param);

    /**
     *查询活动商品价格
     */
    ModularGoodsVO queryGoodsPrice(@Param("goodsId") Integer goodsId);


    List<String> selectByMarkId2(@Param("expireMarkIdList")List<String> expireMarkIdList);
}
